package book_manage_system.user;

import book_manage_system.book.Book;
import book_manage_system.book.BookList;
import book_manage_system.opera.IOperation;

public abstract class User {
    protected String name;
    protected IOperation[] iOperations; //定义一个接口数组，实现对应操作

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    public void doWork(int choice, BookList bookList){
        iOperations[choice].work(bookList);
    }
}
